package cn.kgc.cloud.controller;

import cn.kgc.cloud.client.NacosClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 课工场
 * @date 2024/1/9
 * @description
 */
@RestController
@RequestMapping("nacos")
public class NcosClient8853Controller {

    @Resource
    private NacosClient nacosClient;

    @GetMapping("m1")
    public String method1(){
        String s = nacosClient.method1();
        return "invoke NcosClient8853Controller  ok  --nacos8850-->  " +s;
    }
}
